#import "TopicActionBar.h"

#define LIGHT_BLUE [UIColor colorWithRed:3.0/255.0 green:141.0/255.0 blue:189.0/255.0 alpha:1.0]

@implementation TopicActionBar

@synthesize owner;

- (id)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        //
    }
    return self;
}

- (void)dealloc {
    PP_RELEASE(commentBtn);
    PP_RELEASE(favoriteBtn);
    PP_RELEASE(shareBtn);
    [super dealloc];
}

- (void)start:(id<TopicActionBarDelegate> )pOwner {
    self.owner = pOwner;
}

- (IBAction)pressCommentBtn:(id)sender {
    [owner TABcomment];
}

- (IBAction)pressFavoriteBtn:(id)sender {
    [owner TABfavorite];
}

- (IBAction)pressShareBtn:(id)sender {
    [owner TABshare];
}

@end

